<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h3>上传文件</h3>
<form action="" method="post" enctype="multipart/form-data">
    <!-- Django 的 CSRF 防御机制 -->
    {% csrf_token %}
    <input type="file" name="myfile" />
    <input type="submit" value="提交" />
</form>
</body>
</html>